package{
	import com.tools.UIHelper;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.text.TextField;

	[SWF (width="800",height="600",backgroundColor="#999999")]
	public class PQUIEdit extends Sprite
	{
		private var loadTxt:TextField;
		private var config:ConfigParsing;
		public function PQUIEdit()
		{
			this.addEventListener(Event.ADDED_TO_STAGE,addToStage);
		}
		private function addToStage(e:Event):void{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			config=new ConfigParsing();
			config.init();
			addChild(config.edit);
			loadTxt=UIHelper.self.createTxt({text:"",mouseEnabled:false,width:500,size:16,color:0xff0000});
			addChild(loadTxt);
			loadTxt.y=this.stage.stageHeight/2-10;
			loadTxt.x=this.stage.stageWidth/2-200;
			config.loadConfig("config/config.xml");
			OutputParsing.loadConfig("config/output.xml");
		}
	}
}